<%@page pageEncoding="UTF-8" isELIgnored="false"%>
<%@include file="/common.jsp" %>
<html>
<head>
<%@include file="/common_meta.jsp" %>
<%@include file="/quiz_common_meta.jsp" %>
<meta name="robots" content="noarchive"/>
<title>${f:h(appNm)} - クイズ編集</title>
</head>
<body>
<div data-role="page">
<div data-role="header">クイズの作成</div>
<div data-role="content">
<span style="font-size:small">クイズとクイズの答えを入力してください。</span><br/>
<br/>
<c:set var="actionUrl" value="addQuestion/${f:h(questionNo)}"/>
<form method="post" action="${f:url(actionUrl)}">
<input type="hidden" ${f:hidden("questionNo")}/>
<h5>第<c:out value="${questionNo}"/>問：</h5>
<textarea name="question" cols="30" rows="5">${f:h(question)}</textarea><br/>
<span style="font-size:small">例)二人のはじめてのデート場所はどこでしょうか?</span><br/>
<br/>
1:<input type="text" size="20" ${f:text("answer1")}/><br/>
2:<input type="text" size="20" ${f:text("answer2")}/><br/>
3:<input type="text" size="20" ${f:text("answer3")}/><br/>
4:<input type="text" size="20" ${f:text("answer4")}/><br/>
<br/>
<span style="font-weight:bold;font-size:small">クイズの答え</span>:<select name="answer">
<option ${f:select("answer", "1")}>- 1 -</option>
<option ${f:select("answer", "2")}>- 2 -</option>
<option ${f:select("answer", "3")}>- 3 -</option>
<option ${f:select("answer", "4")}>- 4 -</option>
</select><br/>
<input type="submit" value="登録"　class="button-large" />
</form>
</div>
<div data-role="footer">Powerd by Slim3</div>
</div>
</body>
</html>
